package com.cgq.pro.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.cgq.base.dao.impl.BaseDaoImpl;
import com.cgq.pro.dao.PermissionDao;
import com.cgq.pro.entity.Permission;

@Repository
public class PermissionDaoImpl extends BaseDaoImpl<Permission> implements PermissionDao {

	@SuppressWarnings("unchecked")
	public List<Permission> findAll() {
		String hql="from Permission";
		return hibernateTemplate.find(hql);
	}
	
}
